# SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
# SPDX-License-Identifier: GPL-3.0-only

tags:
  - projectEvent
summary: cors helper
description: cors helper
operationId: "{{ uniqueOpId() }}"
parameters:
  - $ref: "@parameters/projectId.yml.njk"
  - $ref: "@parameters/accessToken.yml.njk"
responses:
  "200":
    description: 成功
    headers: 
      Access-Control-Allow-Origin:
        schema:
          type: string
          default: "*"
      Access-Control-Allow-Methods:
        schema:
          type: string
          default: "PUT, GET, POST, DELETE, OPTIONS"
      Access-Control-Allow-Headers:
        schema:
          type: string
          default: "Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Control-Allow-Credentials"
      Access-Control-Allow-Credentials:
        schema:
          type: string
          default: "true"
    content:
      application/json:
        schema:
          $ref: "@schemas/emptyRes.yml.njk"